package model;

import java.io.Serializable;

/**
 * 学生分数的消息类
 */
public class StudentScoreMessage implements Serializable {

    private static final long serialVersionUID = 8887355208676587904L;
    private String type; //消息类型
    private StudentScore studentScore;

    public StudentScoreMessage(String type, StudentScore studentScore) {
        this.type = type;
        this.studentScore = studentScore;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public StudentScore getStudentScore() {
        return studentScore;
    }

    public void setStudentScore(StudentScore studentScore) {
        this.studentScore = studentScore;
    }

    @Override
    public String toString() {
        return "StudentScoreMessage{" +
                "type='" + type + '\'' +
                ", studentScore=" + studentScore +
                '}';
    }
}
